package com.ht.dsp;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * Created by IntelliJ IDEA.
 * User: Dong Shufeng
 * Date: 11-8-24
 */
public interface DspFacade extends Remote {

    /**
     * update realtime data from ems or file
     *
     * @throws java.rmi.RemoteException runtime exception
     */
    void updateScada() throws RemoteException;

    /**
     * save scada data to file
     *
     * @throws java.rmi.RemoteException runtime exception
     */
    void saveScadaToFile() throws RemoteException;

    /**
     * @param ip   data source's ip if scada data is updated from ems
     * @param port data source's port
     * @throws java.rmi.RemoteException runtime exception
     */
    void setDatasourceIpPort(String ip, int port) throws RemoteException;

    /**
     * @throws java.rmi.RemoteException runtime exception
     */
    void reWritePoint() throws RemoteException;

    /**
     * reload analog points and discrete point used to store SE result form database
     *
     * @throws java.rmi.RemoteException runtime exception
     */
    void reloadSePoints() throws RemoteException;

    /**
     * reload analog points and discrete point used to transmit scada data to fes points form database
     *
     * @throws java.rmi.RemoteException runtime exception
     */
    void reloadRepeaterPoints() throws RemoteException;

    void checkCimFile() throws RemoteException;

    void checkRtdb() throws RemoteException;

    //String getMemcachedConfig() throws RemoteException;

    void uploadMeasurePointsFile() throws RemoteException;

    int checkScada() throws RemoteException;

    void fill104Data() throws RemoteException;
}
